/* 
 * Copyright 2013-2020 Modeliosoft
 * 
 * This file is part of Modelio.
 * 
 * Modelio is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Modelio is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Modelio.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.12.02 at 02:29:48 PM CET
//
package org.modelio.bpmnxml.model;

import com.modeliosoft.modelio.javadesigner.annotations.objid;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;

/**
 * <p>Java class for tAssociation complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="tAssociation">
 * &lt;complexContent>
 * &lt;extension base="{http://www.omg.org/spec/BPMN/20100524/MODEL}tArtifact">
 * &lt;attribute name="sourceRef" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" />
 * &lt;attribute name="targetRef" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" />
 * &lt;attribute name="associationDirection" type="{http://www.omg.org/spec/BPMN/20100524/MODEL}tAssociationDirection" default="None" />
 * &lt;anyAttribute processContents='lax' namespace='##other'/>
 * &lt;/extension>
 * &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@objid ("2c57006d-ff92-4f11-b7ae-b87cc0862490")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tAssociation")
public class TAssociation extends TArtifact {
    @objid ("57ab809f-c03a-41ba-a5d4-18e0042afa40")
    @XmlAttribute(name = "associationDirection")
    protected TAssociationDirection associationDirection;

    @objid ("e3d8e22a-04ee-4239-bd70-d9374a3463ae")
    @XmlAttribute(name = "sourceRef", required = true)
    protected QName sourceRef;

    @objid ("a1b6e96e-739e-4248-aa02-3cf66ad48174")
    @XmlAttribute(name = "targetRef", required = true)
    protected QName targetRef;

    /**
     * Gets the value of the sourceRef property.
     * @return
     * possible object is
     * {@link QName }
     */
    @objid ("f0994ed8-57fd-4556-94b9-3ee95842e19f")
    public QName getSourceRef() {
        return this.sourceRef;
    }

    /**
     * Sets the value of the sourceRef property.
     * @param value allowed object is
     * {@link QName }
     */
    @objid ("76391f3d-7ec9-461f-8843-8c588c455139")
    public void setSourceRef(QName value) {
        this.sourceRef = value;
    }

    /**
     * Gets the value of the targetRef property.
     * @return
     * possible object is
     * {@link QName }
     */
    @objid ("d32e3755-5ce2-4bc2-b5d1-fbf0678b81ee")
    public QName getTargetRef() {
        return this.targetRef;
    }

    /**
     * Sets the value of the targetRef property.
     * @param value allowed object is
     * {@link QName }
     */
    @objid ("3f95526c-15b6-4ad5-9499-5a5376064493")
    public void setTargetRef(QName value) {
        this.targetRef = value;
    }

    /**
     * Gets the value of the associationDirection property.
     * @return
     * possible object is
     * {@link TAssociationDirection }
     */
    @objid ("b6cac78e-5176-4431-b530-f8e692974e5c")
    public TAssociationDirection getAssociationDirection() {
        if (this.associationDirection == null) {
            return TAssociationDirection.NONE;
        } else {
            return this.associationDirection;
        }
        
    }

    /**
     * Sets the value of the associationDirection property.
     * @param value allowed object is
     * {@link TAssociationDirection }
     */
    @objid ("17aca94d-f46d-480e-95e6-858ae3ed3153")
    public void setAssociationDirection(TAssociationDirection value) {
        this.associationDirection = value;
    }

}
